@use "../../basic";
.upload-box {
  .no-border {
    :deep(.el-upload--picture-card) {
      border: none !important;
    }
  }
  .el-upload__tip {
    line-height: 18px;
    text-align: center;
  }
}
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  .upload-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .image-item {
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid var(--el-border-color-darker);
    border-radius: 8px;
    transition: var(--el-transition-duration-fast);
    &:hover {
      .upload-handle {
        opacity: 1;
      }
    }
  }
  .upload-handle {
    position: absolute;
    top: 0;
    right: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgb(0 0 0 / 60%);
    border-radius: 8px;
    opacity: 0;
    transition: var(--el-transition-duration-fast);
    .handle-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0 6%;
      color: aliceblue;
      .el-icon {
        margin-bottom: 15%;
        font-size: 140%;
      }
      span {
        font-size: 100%;
      }
    }
  }
}
